#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_light_clicked()
{
    this->setStyleSheet("background:grb(240, 240, 240);");
    ui->plainTextEdit->setStyleSheet("background:white; color:black");
    ui->pushButton_light->setStyleSheet("background:white;");
    ui->pushButton_dark->setStyleSheet("background:white");
}


void Widget::on_pushButton_dark_clicked()
{
    this->setStyleSheet("background:black;");
    ui->plainTextEdit->setStyleSheet("background:black; color:white;");
    ui->pushButton_light->setStyleSheet("background:black; color:white;");
    ui->pushButton_dark->setStyleSheet("background:black; color:white;");
}

